import request from '@/utils/request'

// 查询苏学码管理列表
export function listUserPlatform(query) {
  return request({
    url: '/business/userPlatform/list',
    method: 'get',
    params: query
  })
}

// 查询苏学码管理详细
export function getUserPlatform(baseId) {
  return request({
    url: '/business/userPlatform/' + baseId,
    method: 'get'
  })
}

// 新增苏学码管理
export function addUserPlatform(data) {
  return request({
    url: '/business/userPlatform',
    method: 'post',
    data: data
  })
}

// 修改苏学码管理
export function updateUserPlatform(data) {
  return request({
    url: '/business/userPlatform',
    method: 'put',
    data: data
  })
}

// 苏学码批量失效
export function batchValid(baseId) {
  return request({
    url: '/business/userPlatform/batchValid/' + baseId,
    method: 'post',
    timeout: 30000
  })
}
